<?php

// +----------------------------------------------------------------------
// | Banner id自定义验证器
// +----------------------------------------------------------------------
// | @author fancsen
// +----------------------------------------------------------------------
namespace app\api\validate;

class Address extends BaseValidate
{
    protected $rule = [
		'name' => 'require|isNotEmpty',
		'mobile' => 'require|isMobile',
		'province' => 'require|isNotEmpty',
		'city' => 'require|isNotEmpty',
		'country' => 'require|isNotEmpty',
		'detail' => 'require|isNotEmpty',
	];
    protected $message = [
        'name.require' => 'name是必填字段',
        'name.isNotEmpty' => 'name不能为空值',
        'mobile.require' => 'mobile是必填字段',
        'mobile.isMobile' => 'mobile规则不符合',
        'province.require' => 'province是必填字段',
        'province.require' => 'province不能为空值',
        'city.require' => 'city是必填字段',
        'city.require' => 'city不能为空值',
        'country.require' => 'country是必填字段',
        'country.require' => 'country不能为空值',
        'detail.require' => 'detail是必填字段',
        'detail.isNotEmpty' => 'detail不能为空值',
    ];

    
}